how to check that string has only alphabet in c#

59

how to check that string has only alphabet in c# -

Regex.IsMatch(input, @"^[a-zA-Z]+$");

how to check that string has only alphabet in c# -

Regex.IsMatch(input, @"^[a-zA-Z0-9]+$");

Comments

Submit
0 Comments